﻿{% extends "gma/base.html" %}
{% load mytag %}

<!-- CONTENT
  =====================================================================-->

{% block content %}

<div class="page__hd">
    <h1 class="page__title">
        <i class="fa fa-landmark weui_grid_icon_fa" style="font-size: 32px"> </i> {{ guild.name }}
    </h1>
    <p class="page__desc"> 用户统计 </p>
</div>

<div class="page__bd">
    {% for info in stat_data %}
    <div class="weui-form-preview">
        <div class="weui-form-preview__hd">
            <div class="weui-form-preview__item">
                <label class="weui-form-preview__label">统计区间</label>
                <em class="weui-form-preview__value">{{ info.batch }}</em>
            </div>
        </div>
        <div class="weui-form-preview__bd">
            <div class="weui-form-preview__item">
                <label class="weui-form-preview__label">开始时间</label>
                <span class="weui-form-preview__value">{{ info.begin_time }} </span>
            </div>
            <div class="weui-form-preview__item">
                <label class="weui-form-preview__label">结束时间</label>
                <span class="weui-form-preview__value">{{ info.end_time }} </span>
            </div>

            <div class="weui-form-preview__item">
                <label class="weui-form-preview__label">累计通话时长</label>
                <span class="weui-form-preview__value">{{ info.total_call_seconds|readable_seconds }} </span>
            </div>
            <div class="weui-form-preview__item">
                <label class="weui-form-preview__label">累计在线时长</label>
                <span class="weui-form-preview__value">{{ info.total_online_seconds|readable_seconds }}</span>
            </div>
            <div class="weui-form-preview__item">
                <label class="weui-form-preview__label">累计收益</label>
                <span class="weui-form-preview__value">{{ info.total_income }} <i class="fa fa-ticket-alt"></i> </span>
            </div>
        </div>
        <div class="weui-form-preview__ft">
            <a class="weui-form-preview__btn weui-form-preview__btn_primary" href="{% url 'gma:guild_user_stat' guild.id info.begin_time info.end_time %}">详情</a>
        </div>
    </div>
    <br>
    {% endfor %}
</div>

<div class="page__ft">
    <a href="{% url 'gma:home' %}">
        <span class="bottom-logo">
           HiBao
       </span>
    </a>
</div>


{% endblock content %}


<!-- SCRIPT
  =====================================================================-->

{% block extra_js %}

{% endblock extra_js %}